<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <a class="navbar-brand" href="#">浙江机电职业技术学院</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
  
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav mr-auto">
        <li class="nav-item active">
          <a class="nav-link" href="#">主页 <span class="sr-only">(current)</span></a>
        </li>
      </ul>
      <!---定义了切换到登陆的路由链接-->
      <a class="btn btn-outline-success" [routerLink]="['/login']">登陆</a>
    </div>
  </nav>